home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / system / bsvc-1.000 / bsvc-1 / bsvc-1.0.4 / src / Framework / Time.cxx < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-26  |  996 b   |  32 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // $Id: Time.cxx,v 1.1 1994/02/18 19:53:57 bmott Exp $
  3. ///////////////////////////////////////////////////////////////////////////////
  4. // Time.cxx 
  5. //
  6. //   The Time object provides access to the system's time. 
  7. //
  8. //
  9. // BSVC "A Microprocessor Simulation Framework"
  10. // Copyright (c) 1993
  11. // By: Bradford W. Mott
  12. // August 12,1993
  13. //
  14. ///////////////////////////////////////////////////////////////////////////////
  15. // $Log: Time.cxx,v $
  16. // Revision 1.1  1994/02/18  19:53:57  bmott
  17. // Initial revision
  18. //
  19. ///////////////////////////////////////////////////////////////////////////////
  20.  
  21. #include "Time.hxx"
  22. #include <time.h>
  23.  
  24. ///////////////////////////////////////////////////////////////////////////////
  25. // Get the current system time in seconds from 00:00:00 GMT, Jan. 1, 1970
  26. ///////////////////////////////////////////////////////////////////////////////
  27. long Time::seconds()
  28. {
  29.   return((long)time((time_t*)0));
  30. }
  31.  
  32.